package pl.prv.polanie.client.dto;

import com.google.gwt.user.client.rpc.IsSerializable;

// default package



/**
 * Ligheweight version of PreferenceDTO. Use only in client side.
 */

public class CSPreferenceDTO extends java.lang.Object implements IsSerializable {

    // Fields

     private long id;
     private long preferenceTypeID;
//     private PreferenceTypeDTO preferenceType;
     private long lecturerID;
//     private LecturerDTO lecturer;
     private long calendarDayID;
//     private CalendarDayDTO calendarDay;
     
     private Integer startTime;
     private Integer duration;

    // Constructors

    /** default constructor */
    public CSPreferenceDTO() {
    }

	public CSPreferenceDTO(long id, long preferenceTypeID, long lecturerID,
			long calendarDayID, Integer startTime, Integer duration) {
		super();
		this.id = id;
		this.preferenceTypeID = preferenceTypeID;
		this.lecturerID = lecturerID;
		this.calendarDayID = calendarDayID;
		this.startTime = startTime;
		this.duration = duration;
	}

	public String toLabel() {
		String result = "" +
			"[ " + CSPreferenceDTO.class + "]" +
			"preferenceTypeID: " + preferenceTypeID +
			", lecturerID: " + lecturerID +
			", calendarDayID: " + calendarDayID +
			", startTime: " + startTime +
			", duration: " + duration; 
		return result;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public long getPreferenceTypeID() {
		return preferenceTypeID;
	}

	public void setPreferenceTypeID(long preferenceTypeID) {
		this.preferenceTypeID = preferenceTypeID;
	}

	public long getLecturerID() {
		return lecturerID;
	}

	public void setLecturerID(long lecturerID) {
		this.lecturerID = lecturerID;
	}

	public long getCalendarDayID() {
		return calendarDayID;
	}

	public void setCalendarDayID(long calendarDayID) {
		this.calendarDayID = calendarDayID;
	}

	public Integer getStartTime() {
		return startTime;
	}

	public void setStartTime(Integer startTime) {
		this.startTime = startTime;
	}

	public Integer getDuration() {
		return duration;
	}

	public void setDuration(Integer duration) {
		this.duration = duration;
	}
	
	public String toString() {
		String result = "" +
			"[ " + CSPreferenceDTO.class + "]" +
			"preferenceTypeID: " + preferenceTypeID +
			", lecturerID: " + lecturerID +
			", calendarDayID: " + calendarDayID +
			", startTime: " + startTime +
			", duration: " + duration; 
		return result;
	}
}